<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>绑定属性</title>
    <script src="vue.js"></script>
    <style>
        .my{
            border:2px solid blue;
        }
    </style>

</head>
<body>
<div id="div">
    <a v-bind:href="url">传智播客1</a>
    <br>
    <a :href="url">传智播客2</a>
    <br>
    <div :class="cls">我最帅！</div>
</div>
</body>
<script>
    new Vue({
        el:"#div",
        data: {
            url: "http://ntlias-stu.boxuegu.com/#/index",
            cls:"my"
        }
    });
</script>
</html>